import os

file = open('subs', 'r')

for line in file:
    parts = line.split(' ')
    print parts
    os.system("sed -i -e 's/%s/%s/g' ember/*.*" % (parts[0], parts[1].strip()))
    os.system("sed -i -e 's/%s/%s/g' libember/*.*" % (parts[0], parts[1].strip()))
    os.system("sed -i -e 's/%s/%s/g' ember_console/*.*" % (parts[0], parts[1].strip()))
